<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:65:"/var/www/fish/application/crm/view/department/departmentList.html";i:1509610772;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>小鱼ADMIN</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/public/static/css/font.css">
    <link rel="stylesheet" href="/public/static/css/bgadmin.css">
    <script type="text/javascript" src="/public/static/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
    <link href="/public/static/scripts/layui/css/layui.css" rel="stylesheet" />
    <script src="/public/static/scripts/layui/layui.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="bg-nav1" style="height: 50px;">
        <a class="layui-btn layui-btn-small" style="line-height:2.8em;margin-top:20px;float:right;margin-right: 20px;" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon">ဂ</i></a>
        <a class="layui-btn layui-btn-small" style="line-height:2.8em;margin-top:20px;margin-left:20px;" onclick="bg_admin_show('添加部门','./addDepartment.html',600,400)">
        <i class="layui-icon"></i>添加</a>
    </div>
    <div class="bg-body1">
        <div class="layui-row">
            <div id="demo" class="grid"  style="margin-top:55px;margin-right:15px;margin-left:15px;border:0;" >
            </div>
        </div>
    </div>
    <script id="view" type="text/html">
        <table class="layui-table">
            <thead>
                <tr style="width: 100%;">
                    <th style="width: 20%;">组织结构</th>
                    <th style="width: 20%;">负责人</th>
                    <th style="width: 20%;">部门ID</th>
                    <th style="width: 40%;">操作</th>
                </tr>
            </thead>
            <tbody>
                {{# layui.each(d.rows,function(index,r){ }}
                <tr>
                    <td><input type="checkbox" />{{r.department_name}}</td>
                    <td>{{r.department_leader}}</td>
                    <td>{{r.department_id}}</td>
                    <td>
                        <a title="编辑" onclick="bg_admin_show('编辑','editDepartment.html?id={{r.department_id}}',600,400)" href="javascript:;">
                            <i class="layui-icon">&#xe642;</i>
                        </a>
                        <a title="删除" onclick="delDepartment('{{r.department_id}}')" href="javascript:;">
                            <i class="layui-icon">&#xe640;</i>
                        </a>
                    </td>
                </tr>
                {{# }); }}
            </tbody>
        </table>
    </script>
    <script type="text/javascript" src="/public/static/crm/js/department/departmentList.js"></script>
    
  </body>

</html>